package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.vo.SocialUser;
import com.atguigu.gulimall.auth.vo.UserLoginVo;
import com.atguigu.gulimall.auth.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 马迎迎
 * @Title: MemberFeignService
 * @Package com.atguigu.gulimall.auth.feign
 * @Description: TODO(添加描述)
 * @date 2021年05月26日 10:53
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/regist")
    R regist(@RequestBody UserRegistVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);


    @PostMapping("/member/member/oauth/login")
    public R oauthLogin(@RequestBody SocialUser socialUser) throws Exception;
}
